<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\xwam\controller;

/**
 * Index 类
 *
 * @since version:1.0(2016-11-29); author:SoChishun(14507247@qq.com); desc:Added.
 */
class Index extends \think\Controller {

    function index() {
        // 页面配置
        $pageconf = [
            'meta_title' => '', // 页面标题
        ];
        // 站点设置
        $siteconf = [
            'site_title' => '', // 网站标题
            'title_suffix' => '', // 标题后缀
            'site_app_version' => '1.0', // 网站版本
            'site_app_name' => '',
            'SCREENPOPUP_MODE' => '',
            'ui_aside_status' => 'Y',
        ];
        // 登录数据
        $logindata = [
            'name' => '',
            'user_name' => '',
            'role_names' => '',
            'department_names' => '',
            'login_time' => '',
            'login_ip' => '',
            'login_count' => '',
        ];
        // 菜单
        $menuset = [];
        $pageconf = array_merge($pageconf, $siteconf);
        $this->assign('pageconf', $pageconf);
        $this->assign('logindata', $logindata);
        $this->assign('menuset', $menuset);
        return $this->fetch();
    }

}
